package com.waves.task.dao;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.waves.task.domain.entity.TaskCopy;
import com.waves.task.mapper.TaskCopyMapper;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class TaskCopyDao extends ServiceImpl<TaskCopyMapper, TaskCopy> {

    public List<TaskCopy> taskCopyList(Integer start, Integer end) {
        LambdaQueryWrapper<TaskCopy> wrapper = new LambdaQueryWrapper<TaskCopy>()
                .gt(TaskCopy::getId,start)
                .lt(TaskCopy::getId,end);
        return baseMapper.selectList(wrapper);
    }
}
